package com.axonactive.training.service;

import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;

import com.axonactive.training.dao.ExpenseDao;
import com.axonactive.training.model.Expense;

@Stateless
public class ExpenseService {
	@Inject
	ExpenseDao expenseDao;
	
	public void saveExpense(Expense expense){
		expenseDao.saveExpense(expense);
	}
	
	public List<Expense> getExpenseList(){
		return expenseDao.getExpenseList();
	}
}
